home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / pbaseiv.zip / P4SPR005.TIP < prev    next >
Text File  |  1991-12-16  |  3KB  |  71 lines

  1. I used to be annoyed, when performing my accounting duties,
  2. at how inconvenient it was to enter numerous dates in 1-2-3.
  3. I therefore developed the following three macros for 1-2-3
  4. version 2.2 that let me enter dates easily and without
  5. complicated formulae [see figure].
  6.  
  7. Use <Alt>-X if the dates vary between years. To enter July
  8. 3, 1991, for example, press <Alt>-X, then type 91703 or
  9. 910703. In either case, the result in your worksheet will be
  10. `07/03/91'.
  11.  
  12. If all the dates you're entering are in the same year, you
  13. can save even more keystrokes by typing <Alt>-Y, which uses
  14. a default from a cell labeled `year'. In this example, July
  15. 7, 1991, is entered as 707 or 0707.
  16.  
  17. Use <Alt>-Z if all dates are in the same month: July 5,
  18. 1991, is then entered as 5 or 05. Set the `year' and `month'
  19. cells before entering dates.
  20.  
  21. In practice, I use only one of these macros at a time and
  22. assign the range name \x to the one I'm using. I sometimes
  23. add or to the end of a macro if I need the cursor to move
  24. right one cell or down one cell after the date has been
  25. entered. Happy dating!
  26.  
  27. W. Gerald Kiekbusch
  28. Phoenix, Arizona
  29.  
  30. Editor's note: The spreadsheet shown below is on your
  31. PowerBase *.* Volume IV diskette in the file
  32. P4SPREAD\DATING.WK1. If you enter the macros by hand, type
  33. an apostrophe before each cell entry that starts with a
  34. slash or backslash (/ or \), to make sure that 1-2-3 sees
  35. the entry as text rather than as a command. The apostrophe
  36. won't appear in the cell, but it will show up at the top of
  37. the screen if you edit the cell's contents. The default year
  38. and month (`91' and `5') go in column B, the same column as
  39. the macro commands; they appear to be farther to the right
  40. only because, as numbers, they're flush right.
  41.  
  42. Finally, remember that the cells in the leftmost column are
  43. there for two reasons: for documentation purposes and to
  44. give range names to the cell immediately to the right. Use
  45. the /Range Name Labels Right command to assign these names
  46. to the appropriate cells in the right column.
  47.  
  48. Lotus 1-2-3 Date Macros
  49.  
  50.      A        B        C        D        E        F        G        H
  51.  
  52. 1  \x     /rfd4~
  53. 2         {getnumber Enter date (YYMDD or YYMMDD)! ,@cellpointer("address")}
  54. 3         {edit}){L 3},{home}@date({R 2},{calc}~
  55. 4
  56. 5  \y     /rfd4~
  57. 6         {getnumber Enter date (MDD or MMDD)! ,@cellpointer("address")}
  58. 7         {edit}){L 3},{home}@date(year,{calc}~
  59. 8
  60. 9  year         91
  61. 10 month         5
  62. 11 \z     /rfd4~
  63. 12        {getnumber Enter day (D or DD)! ,@cellpointer("address")}
  64. 13        {edit}){L 3},{home}@date(year,month{calc}~
  65.  
  66. Title: Serious Dating
  67. Category: SPR
  68. Issue date: Jul 1991
  69. Editor: Brett Glass
  70. Supplementary files: P4SPREAD\DATING.WK1
  71.